<?php
/**
 * 系统初始化
 * @author wuwenbin <wenbin.wu@foxmail.com>
 * @license http://opensource.org/licenses/MIT The MIT License
 */

define("INC_PATH", dirname(__FILE__));
include_once(INC_PATH."/core.php");
include_once(INC_PATH."/util.php");

timer::add();

if(get_magic_quotes_gpc()) {
    $_GET = stripslashes_deep($_GET);
    $_POST = stripslashes_deep($_POST);
    $_COOKIE = stripslashes_deep($_COOKIE);
}
$_REQUEST = array_merge($_GET, $_POST, $_COOKIE);

date_default_timezone_set("Asia/Shanghai");
header("content-type: text/html; charset=utf-8");

config::set(include(INC_PATH."/config.php"));
mysql::add_db(config::get("db"));

/* YOUR CODE! */

